package io.gitee.hefren.hhregistry.beans;

import com.google.common.base.MoreObjects;
import org.springframework.http.HttpStatus;

/**
 * @Date 2024/5/22
 * @Author lifei
 */
public class ExceptionResponse {

    private HttpStatus httpStatus;
    private String message;

    public ExceptionResponse() {
    }

    public ExceptionResponse(HttpStatus httpStatus, String message) {
        this.httpStatus = httpStatus;
        this.message = message;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }

    public void setHttpStatus(HttpStatus httpStatus) {
        this.httpStatus = httpStatus;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(ExceptionResponse.class)
                .add("httpStatus", httpStatus)
                .add("message", message)
                .toString();
    }
}
